import { createHashRouter, Navigate } from 'react-router-dom'

import Layout from '@/layout'

import Home from '@/views/Home'


const routes = [
  {
    path: '',
    element: <Navigate to="/home" />
  },


  {
    path: '',
    name: '登录',
    element: <Layout />,
    roles: ['ANY', 'admin', 'qianzhi123'],
    children: [
      {
        path: 'home',
        element: <Home />
      }
    ]
  },

]

export default createHashRouter(routes)
